export enum PagePermission {
  // 首页
  PAGE_HOME = 'PAGE_HOME',
  // 用户管理页面
  PAGE_USER = 'PAGE_USER',
  // 商户
  PAGE_MERCHANT = 'PAGE_MERCHANT',
  // 活动
  PAGE_ACTIVITY = 'PAGE_ACTIVITY',
  // 客户
  PAGE_CUSTOMER = 'PAGE_CUSTOMER',
  // 橘色
  PAGE_ROLE = 'PAGE_ROLE',
  // 电表
  PAGE_ELECTRICITY_METER = 'PAGE_ELECTRICITY_METER',
  // 机器
  PAGE_MACHINE = 'PAGE_MACHINE',
  // 机器类型
  PAGE_MACHINE_TYPE = 'PAGE_MACHINE_TYPE',
  // 活动订单管理
  PAGE_ACTIVITY_ORDER = 'PAGE_ACTIVITY_ORDER',
  // 订单支付记录
  PAGE_PAY_RECORD = 'PAGE_PAY_RECORD',
  // 订单付款记录
  PAGE_REFUND_RECORD = 'PAGE_REFUND_RECORD',
  // Banner管理
  PAGE_BANNER = 'PAGE_BANNER',
  // 小程序用户
  PAGE_WEAPP_USER = 'PAGE_WEAPP_USER',
  // 渠道商
  PAGE_DISTRIBUTOR = 'PAGE_DISTRIBUTOR'
}

export enum ButtonPermission {
  READ_USER = 'READ_USER',
  CREATE_USER = 'CREATE_USER',
  UPDATE_USER = 'UPDATE_USER',
  DELETE_USER = 'DELETE_USER',
  RESET_USER_PASSWORD = 'RESET_USER_PASSWORD',

  READ_ROLE = 'READ_ROLE',
  CREATE_ROLE = 'CREATE_ROLE',
  UPDATE_ROLE = 'UPDATE_ROLE',
  DELETE_ROLE = 'DELETE_ROLE',

  READ_MERCHANT = 'READ_MERCHANT',
  CREATE_MERCHANT = 'CREATE_MERCHANT',
  UPDATE_MERCHANT = 'UPDATE_MERCHANT',
  DELETE_MERCHANT = 'DELETE_MERCHANT',

  READ_ACTIVITY = 'READ_ACTIVITY',
  CREATE_ACTIVITY = 'CREATE_ACTIVITY',
  UPDATE_ACTIVITY = 'UPDATE_ACTIVITY',
  DELETE_ACTIVITY = 'DELETE_ACTIVITY',
  SWITCH_ACTIVITY_STATUS = 'SWITCH_ACTIVITY_STATUS',

  // 获取活动订单
  READ_ACTIVITY_ORDER = 'READ_ACTIVITY_ORDER',
  // 更新活动订单
  UPDATE_ACTIVITY_ORDER = 'UPDATE_ACTIVITY_ORDER',
  // 删除活动订单
  DELETE_ACTIVITY_ORDER = 'DELETE_ACTIVITY_ORDER',
  // 活动订单退款
  REFUND_ACTIVITY_ORDER = 'REFUND_ACTIVITY_ORDER',
  // 核销
  WRITE_OFF_ACTIVITY_ORDER = 'WRITE_OFF_ACTIVITY_ORDER',
  // 导出
  EXPORT_ACTIVITY_ORDER = 'EXPORT_ACTIVITY_ORDER',

  // 获取banner
  READ_BANNER = 'READ_BANNER',
  // 创建banner
  CREATE_BANNER = 'CREATE_BANNER',
  // 更新banner
  UPDATE_BANNER = 'UPDATE_BANNER',
  // 删除banner
  DELETE_BANNER = 'DELETE_BANNER',

  // 获取小程序用户
  READ_WEAPP_USER = 'READ_WEAPP_USER',
  // 更新小程序用户
  UPDATE_WEAPP_USER = 'UPDATE_WEAPP_USER',
  // 删除小程序用户
  DELETE_WEAPP_USER = 'DELETE_WEAPP_USER',

  // 获取支付记录
  READ_PAY_RECORD = 'READ_PAY_RECORD',
  // 创建支付记录
  CREATE_PAY_RECORD = 'CREATE_PAY_RECORD',
  // 更新支付记录
  UPDATE_PAY_RECORD = 'UPDATE_PAY_RECORD',
  // 删除支付记录
  DELETE_PAY_RECORD = 'DELETE_PAY_RECORD',

  // 获取退款记录
  READ_REFUND_RECORD = 'READ_REFUND_RECORD',
  // 创建退款记录
  CREATE_REFUND_RECORD = 'CREATE_REFUND_RECORD',
  // 更新退款记录
  UPDATE_REFUND_RECORD = 'UPDATE_REFUND_RECORD',
  // 删除退款记录
  DELETE_REFUND_RECORD = 'DELETE_REFUND_RECORD',

  // 新增渠道商
  CREATE_DISTRIBUTOR = 'CREATE_DISTRIBUTOR',
  // 更新渠道商
  UPDATE_DISTRIBUTOR = 'UPDATE_DISTRIBUTOR',
  // 删除渠道商
  DELETE_DISTRIBUTOR = 'DELETE_DISTRIBUTOR',
}

export type Permission = PagePermission | ButtonPermission;
